home *** CD-ROM | disk | FTP | other *** search
- Subject: Novice ODF scripting mystery
- Sent: 8/13/96 10:00 AM
- Received: 8/13/96 10:21 AM
- From: Eric Smith, eric@tarkvara.org
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- Greetings,
-
- I'm in the process of adding scriptability to my part. The C++ part of the
- job was pretty straightforward, despite the rather meagre documentation.
-
- What's causing me grief is the 'aete' resource, because the terminology
- I've added doesn't seem to be fully accessible to AppleScript. In
- particular, I've extended the 'ODSt' suite by adding a few new properties
- to the 'part' class. These properties show up in the editor's dictionary,
- but scripts can only refer to these properties by their class names: "set
- x to <<class rads>> of part id 65566" works, but "set x to radius of part
- id 65566" tells me that "Foo got an error: Can't make some data into the
- expected type". I notice that ODFDraw seems to have a similar problem:
- scripts can refer to "<<class DrSh>>", but not to "shape" or "shapes".
-
- Is this an OpenDoc problem, an ODF problem, or an AppleScript problem?
- It's bad enough that users have to deal with "part id 65566", but I
- certainly can't expect them to deal with something as ugly as <<class
- rads>>. For the record, I'm using OpenDoc 1.1f1, ODF R1, and AppleScript
- 1.1.
-
- Thanks,
-
- Eric Smith
- Tarkvara Design
-
-
-
-